<?php

use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;

$paths = array("Model/");
$isDevMod = true;

$dbParams = array(
    'driver' => 'pdo_mysql',
    'user' => 'root',
    'password' => '78981_',
    'dbname' => 'db_realty'
);

$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMod);
$entityManager = EntityManager::create($dbParams, $config);